Michael Natterer [Wed, 28 May 2008 15:07:04 +0000 (15:07 +0000)]
define __GTK_H_INSIDE__ around including all other headers.
2008-05-28 Michael Natterer <mitch@imendio.com>
* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
headers.
* gtk/gtktypebuiltins.h.template
* gtk/gtkversion.h.in
* gtk/gtk*.h: add single-include guards that #error out if
GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
included individually.
* gtk/gtkprintbackend.h
* gtk/gtkprinter-private.h
* gtk/gtktextlayout.h
* gtk/gtktexttagprivate.h
* gtk/gtktexttypes.h
* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
headers in these private or semi-private headers.
* gtk/gtkimmodule.h: also here because it's not in gtk.h.
* gtk/gtkpagesetupunixdialog.h
* gtk/gtkprinter.h
* gtk/gtkprintjob.h
* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.
* gtk/gtkclist.h
* gtk/gtkcombo.h
* gtk/gtkctree.h
* gtk/gtkfilesel.h
* gtk/gtkitemfactory.h
* gtk/gtklist.h
* gtk/gtklistitem.h
* gtk/gtkoldeditable.h
* gtk/gtkoptionmenu.h
* gtk/gtkpixmap.h
* gtk/gtkpreview.h
* gtk/gtksignal.h
* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
instead of individual headers in these deprecated headers. They
don't get included at all when GTK_DISABLE_DEPRECATED is defined,
so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
and include them individually, which should continue to work.
* gtk/gtkclist.c: include "gtkctree.h" because of the change
above.
svn path=/trunk/; revision=20221
Kristian Rietveld [Wed, 28 May 2008 14:47:50 +0000 (14:47 +0000)]
Bug 449625 - crash in gtk_tree_view_real_move_cursor at gtktreeview.c:9641
2008-05-28 Kristian Rietveld <kris@imendio.com>
Bug 449625 - crash in gtk_tree_view_real_move_cursor at
gtktreeview.c:9641
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down):
cursor_offset *must* be larger than background height of the cursor
node, not just equal otherwise there is no guarantee there is a next
node.
svn path=/trunk/; revision=20219
Michael Natterer [Wed, 28 May 2008 14:47:06 +0000 (14:47 +0000)]
don't include <gdk/gdktestutils.h>.
2008-05-28 Michael Natterer <mitch@imendio.com>
* gtk/gtktestutils.c: don't include <gdk/gdktestutils.h>.
svn path=/trunk/; revision=20218
Michael Natterer [Wed, 28 May 2008 14:01:57 +0000 (14:01 +0000)]
define __GDK_H_INSIDE__ around including all other headers.
2008-05-28 Michael Natterer <mitch@imendio.com>
* gdk/gdk.h: define __GDK_H_INSIDE__ around including all other
headers.
* gdk/gdkenumtypes.h.template
* gdk/gdk*.h: add single-include guards that #error out if
GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
included individually. Also removed some redundant includes and
did some tiny trailing whitespace removal that's not worth to
commit separately.
* gdk/gdkprivate.h: include <gdk/gdk.h> instead of individual
files.
* gdk/win32/gdkwin32.h
* gdk/x11/gdkx.h: only include <gdk/gdkprivate.h> and remove all
other includes.
svn path=/trunk/; revision=20217
Kristian Rietveld [Wed, 28 May 2008 14:00:31 +0000 (14:00 +0000)]
Bug 504087 - make gtk_tooltip_set_custom a no-op for setting the current
2008-05-28 Kristian Rietveld <kris@imendio.com>
Bug 504087 - make gtk_tooltip_set_custom a no-op for setting the
current widget again.
* gtk/gtktooltip.c (gtk_tooltip_set_custom),
(gtk_tooltip_reset), (gtk_tooltip_run_requery): use a
custom_was_reset field to check if the custom widget is set again in
the query-tooltip callback; if not, we set it to NULL. Based on a
patch by Xavier Claessens, insightful comments from Jean-Yves Lefort
and Christian Persch.
svn path=/trunk/; revision=20215
Michael Natterer [Wed, 28 May 2008 13:39:52 +0000 (13:39 +0000)]
define GDK_PIXBUF_H_INSIDE around including all other headers.
2008-05-28 Michael Natterer <mitch@imendio.com>
* gdk-pixbuf.h: define GDK_PIXBUF_H_INSIDE around including all
other headers.
* gdk-pixbuf-animation.h
* gdk-pixbuf-core.h
* gdk-pixbuf-enum-types.h.template
* gdk-pixbuf-features.h.in
* gdk-pixbuf-io.h
* gdk-pixbuf-loader.h
* gdk-pixbuf-simple-anim.h
* gdk-pixbuf-transform.h: add single-include guards that #error
out if GDK_PIXBUF_DISABLE_SINGLE_INCLUDES is defined and any of
these files is included individually.
* gdk-pixbuf-private.h: don't incude "gdk-pixbuf-io.h".
* gdk-pixbuf-csource.c: #define __GTK_H_INSIDE__ around including
"../gtk/gtkversion.h". Ugly but needed in this special case.
svn path=/trunk/; revision=20214
Michael Natterer [Wed, 28 May 2008 13:23:18 +0000 (13:23 +0000)]
Move ChangeLog entry to right file.
svn path=/trunk/; revision=20213
Michael Natterer [Wed, 28 May 2008 13:01:15 +0000 (13:01 +0000)]
Fix ChangeLog.
svn path=/trunk/; revision=20212
Michael Natterer [Wed, 28 May 2008 12:59:48 +0000 (12:59 +0000)]
include <gtk/gtk.h> instead of <gtk/gtkaccessible.h>
2008-05-28 Michael Natterer <mitch@gimp.org>
* modules/other/gail/gailwidget.h: include <gtk/gtk.h> instead of
<gtk/gtkaccessible.h>
* modules/other/gail/*.h: don't include anyting from gtk since all
headers indirectly include gailwidget.h.
* modules/other/gail/gailcellparent.c: include <gtk/gtk.h> instead
of individual files.
* modules/other/gail/gailcheckmenuitem.c
* modules/other/gail/gailmenu.c
* modules/other/gail/gailtreeview.c: remove all gtk includes since
it's always included by including any gail header.
svn path=/trunk/; revision=20211
Michael Natterer [Wed, 28 May 2008 12:49:11 +0000 (12:49 +0000)]
modules/printbackends/cups/gtkcupsutils.c
2008-05-28 Michael Natterer <mitch@gimp.org>
* modules/printbackends/cups/gtkcupsutils.c
* modules/printbackends/cups/gtkprintbackendcups.c
* modules/printbackends/file/gtkprintbackendfile.c
* modules/printbackends/lpr/gtkprintbackendlpr.c: include
<gtk/gtk.h> instead of individual files.
svn path=/trunk/; revision=20210
Michael Natterer [Wed, 28 May 2008 12:47:37 +0000 (12:47 +0000)]
include <gdk-pixbuf/gdk-pixbuf.h> instead of individual files.
2008-05-28 Michael Natterer <mitch@imendio.com>
* demos/testpixbuf.c: include <gdk-pixbuf/gdk-pixbuf.h> instead of
individual files.
svn path=/trunk/; revision=20209
Kristian Rietveld [Wed, 28 May 2008 12:20:38 +0000 (12:20 +0000)]
Bug 498010 - gtk_tree_view_set_cursor fails if model!=NULL.
2008-05-28 Kristian Rietveld <kris@imendio.com>
Bug 498010 - gtk_tree_view_set_cursor fails if model!=NULL.
* gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): return if fail
->priv->tree != NULL. Suggestion from Stefan Kost.
svn path=/trunk/; revision=20208
Kristian Rietveld [Wed, 28 May 2008 12:18:39 +0000 (12:18 +0000)]
Dear Kris, we live in 2008 now, not 2006.
svn path=/trunk/; revision=20207
Kristian Rietveld [Wed, 28 May 2008 11:49:20 +0000 (11:49 +0000)]
Bug 324282 - add selected signal to cell renderer combo.
2006-05-28 Kristian Rietveld <kris@imendio.com>
Bug 324282 - add selected signal to cell renderer combo.
* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init),
(gtk_cell_renderer_combo_changed),
(gtk_cell_renderer_combo_start_editing): add a new "changed" signal
that will be emitted as soon as the combo box emitted changed and has
an active iterator. (Modified patch based on work by James
Pelletier).
* gtk/gtkmarshalers.list: add marshaler.
svn path=/trunk/; revision=20206
Kristian Rietveld [Wed, 28 May 2008 09:26:13 +0000 (09:26 +0000)]
Refactor expand/collapse timeout handling (amendment to bug 511217).
2008-05-28 Kristian Rietveld <kris@imendio.com>
Refactor expand/collapse timeout handling (amendment to bug 511217).
* gtk/gtktreeview.c (add_expand_collapse_timeout),
(remove_expand_collapse_timeout): new functions, the remove function
also clears expanded_collapsed_node,
(cancel_arrow_animation): moved to be next to the add/remove timeout
functions,
(gtk_tree_view_unrealize),
(gtk_tree_view_row_deleted),
(gtk_tree_view_set_model),
(cancel_arrow_animation),
(gtk_tree_view_real_expand_row),
(gtk_tree_view_real_collapse_row): use the new add/remove functions.
svn path=/trunk/; revision=20205
Kristian Rietveld [Wed, 28 May 2008 09:02:29 +0000 (09:02 +0000)]
Amendment of bug 485218 - Strange warning encountered.
2008-05-28 Kristian Rietveld <kris@imendio.com>
Amendment of bug 485218 - Strange warning encountered.
* gtk/gtktreemodelsort.[ch]
(gtk_tree_model_sort_convert_child_iter_to_iter): return a boolean
indication whether or not the conversion had succeeded.
svn path=/trunk/; revision=20204
Matthias Clasen [Wed, 28 May 2008 01:43:34 +0000 (01:43 +0000)]
Bug 509788 – GTK+ should use CUPS to set Postscript level of PS output
* modules/printbackends/cups/gtkprintbackendcups.c
(cups_printer_create_cairo_surface): Fall back to PostScript level 2
if the printer does not support level 3. Patch by Marek Kašík.
svn path=/trunk/; revision=20203
Matthias Clasen [Wed, 28 May 2008 01:30:37 +0000 (01:30 +0000)]
Bug 404571 – Scroll arrow backgrounds should be painted with different
detail
* gtk/gtkmenu.c (gtk_menu_paint): Use "menu_scroll_arrow_up/down"
as detail when drawing scroll arrow backgrounds. Proposed by
Tommi Komulainen.
svn path=/trunk/; revision=20202
Matthias Clasen [Wed, 28 May 2008 00:33:49 +0000 (00:33 +0000)]
Bug 511217 - potential memory corruption after refreshing a tree_view
* gtk/gtktreeview.c (cancel_arrow_animation): Reset
expanded_collapsed_node when canceling the animation.
Patch by Nicholas Setton.
svn path=/trunk/; revision=20201
Michael Natterer [Tue, 27 May 2008 23:55:28 +0000 (23:55 +0000)]
modules/input/gtkimcontextime.h modules/input/gtkimcontextmultipress.h
2008-05-28 Michael Natterer <mitch@imendio.com>
* modules/input/gtkimcontextime.h
* modules/input/gtkimcontextmultipress.h
* modules/input/gtkimcontextthai.h
* modules/input/gtkimcontextxim.h: include <gtk/gtk.h> instead of
individual files.
* modules/input/gtkimcontextime.c
* modules/input/gtkimcontextmultipress.c
* modules/input/gtkimcontextxim.c
* modules/input/imam-et.c
* modules/input/imcedilla.c
* modules/input/imcyrillic-translit.c
* modules/input/iminuktitut.c
* modules/input/imipa.c
* modules/input/imti-er.c
* modules/input/imti-et.c
* modules/input/imviqr.c: ditto. Some minor cleanups like moving
"gtk/gtkintl.h" to the end of includes.
svn path=/trunk/; revision=20200
Michael Natterer [Tue, 27 May 2008 23:45:36 +0000 (23:45 +0000)]
modules/engines/pixbuf/pixbuf-style.h include <gtk/gtk.h> instead of
2008-05-28 Michael Natterer <mitch@imendio.com>
* modules/engines/pixbuf/pixbuf-style.h
* modules/engines/pixbuf/pixbuf-rc-style.h: include <gtk/gtk.h>
instead of individual files.
svn path=/trunk/; revision=20199
Matthias Clasen [Tue, 27 May 2008 23:16:06 +0000 (23:16 +0000)]
Bug 485218 - Strange warning encountered
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted):
(gtk_tree_model_sort_convert_child_iter_to_iter):
(gtk_tree_model_sort_build_level): Better warnings. Patch
by Kristian Rietveld.
svn path=/trunk/; revision=20198
Matthias Clasen [Tue, 27 May 2008 23:02:02 +0000 (23:02 +0000)]
Fixes
svn path=/trunk/; revision=20197
Matthias Clasen [Tue, 27 May 2008 22:50:49 +0000 (22:50 +0000)]
106574 - Inconsistent increment behavior for gtkspinbutton
* gtk/gtkspinbutton.c (gtk_spin_button_real_value_change):
Commit the entry text before doing an increment. Patch by
Björn Lindqvist.
svn path=/trunk/; revision=20196
Federico Mena Quintero [Tue, 27 May 2008 20:33:23 +0000 (20:33 +0000)]
bgo533891 - disallow DnD from the file list into itself
2008-05-27 Federico Mena Quintero <federico@novell.com>
http://bugzilla.gnome.org/show_bug.cgi?id=533891 - Don't allow
drag and drop from the file list into itself, as it doesn't make
sense (it would just change the current folder).
* gtk/gtkfilechooserdefault.c (file_list_dest_targets): Use
GTK_TARGET_OTHER_WIDGET so we don't DnD from the file list into
itself.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=20194
Matthias Clasen [Tue, 27 May 2008 20:27:40 +0000 (20:27 +0000)]
Bug 531887 - GtkTooltips is deprecated, but what should I use?
* gtk/tmpl/gtktooltips.sgml: Add a hint for what to use instead
svn path=/trunk/; revision=20193
Tor Lillqvist [Tue, 27 May 2008 16:51:33 +0000 (16:51 +0000)]
Use explicit G_MODULE_EXPORT decoration when building the loader in
2008-05-27 Tor Lillqvist <tml@novell.com>
* io-*.c: Use explicit G_MODULE_EXPORT decoration when building
the loader in question as a module.
* gdk-pixbuf-io.c: Enable included build of the icns and jasper
loaders.
svn path=/trunk/; revision=20192
Michael Natterer [Tue, 27 May 2008 15:07:26 +0000 (15:07 +0000)]
move deprecated guards around everything, including includes and include
2008-05-27 Michael Natterer <mitch@imendio.com>
* gtk/gtksignal.h: move deprecated guards around everything,
including includes and include guards (just as in all other
deprecated files).
svn path=/trunk/; revision=20191
Tor Lillqvist [Tue, 27 May 2008 13:03:49 +0000 (13:03 +0000)]
Use simpler mode for open() on Windows. (No S_I?GRP and S_I?OTH bits are
2008-05-27 Tor Lillqvist <tml@novell.com>
* gtk/updateiconcache.c (build_cache): Use simpler mode for open()
on Windows. (No S_I?GRP and S_I?OTH bits are defined in
<sys/stat.h> on Windows, and the mode used in open() doesn't
matter much as there are no rwxrwxrwx bits on Windows anyway.)
Open file in binary mode. Passing "b" to fdopen() later isn't
enough.
svn path=/trunk/; revision=20190
Michael Natterer [Tue, 27 May 2008 12:50:45 +0000 (12:50 +0000)]
put back the #define, but call it GDK_PIXBUF_C_COMPILATION.
2008-05-27 Michael Natterer <mitch@imendio.com>
* gdk-pixbuf.c: put back the #define, but call it
GDK_PIXBUF_C_COMPILATION.
* gdk-pixbuf-features.h.in: make variable export depend on that
define instead of GDK_PIXBUF_COMPILATION.
svn path=/trunk/; revision=20189
Michael Natterer [Tue, 27 May 2008 12:05:14 +0000 (12:05 +0000)]
Fix and simplify definition of GDK_PIXBUF_VAR:
2008-05-27 Michael Natterer <mitch@imendio.com>
Fix and simplify definition of GDK_PIXBUF_VAR:
* Makefile.am: add -DGDK_PIXBUF_COMPILATION to INCLUDES.
* gdk-pixbuf.c: don't #define it here. Remove GDK_PIXBUF_VAR from
the definition of the version variables.
* gdk-pixbuf-features.h.in: in the !G_PLATFORM_WIN32 case, always
define GDK_PIXBUF_VAR to "extern". Remove redundant #ifndef
GDK_PIXBUF_VAR around the whole block, the header itself already
has include guards.
svn path=/trunk/; revision=20188
10:33:41 Tim Janik [Tue, 27 May 2008 08:35:24 +0000 (08:35 +0000)]
guard gtk_widget_get_snapshot() against invalid or invisible widgets.
2008-05-27 10:33:41 Tim Janik <timj@imendio.com>
* gtk/gtkwidget.c: guard gtk_widget_get_snapshot() against
invalid or invisible widgets.
svn path=/trunk/; revision=20187
Matthias Clasen [Tue, 27 May 2008 04:48:31 +0000 (04:48 +0000)]
Bug 531008 – Crash in gtkprintunixdialog.c
* gtk/gtkprintunixdialog.c: Disconnect signal handlers when
the dialog closes. Patch by Yevgen Muntyan.
svn path=/trunk/; revision=20186
Matthias Clasen [Tue, 27 May 2008 04:43:41 +0000 (04:43 +0000)]
RH bug 248245: cups client printing from gnome applications fail
* modules/printbackends/cups/gtkprintbackendcups.c
(gtk_print_backend_cups_print_stream): Specify the right server.
svn path=/trunk/; revision=20185
Carlos Garnacho [Tue, 27 May 2008 00:20:18 +0000 (00:20 +0000)]
Enable rubberbanding when "select-multiple" is TRUE. Bug #446068.
2008-05-27 Carlos Garnacho <carlos@imendio.com>
* gtk/gtkfilechooserdefault.c (set_select_multiple): Enable
rubberbanding when "select-multiple" is TRUE. Bug #446068.
svn path=/trunk/; revision=20184
Carlos Garnacho [Tue, 27 May 2008 00:12:33 +0000 (00:12 +0000)]
Enable correctly dialog buttons sensitivity when the anonymous option is
2008-05-27 Carlos Garnacho <carlos@imendio.com>
* gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Enable
correctly dialog buttons sensitivity when the anonymous option is
enabled by default. Bug #531865.
svn path=/trunk/; revision=20183
Carlos Garnacho [Tue, 27 May 2008 00:08:00 +0000 (00:08 +0000)]
Set password dialog modal and transient for the parent window also if it
2008-05-27 Carlos Garnacho <carlos@imendio.com>
* gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Set
password dialog modal and transient for the parent window also if it
was specified in the constructor. Bug #531864.
svn path=/trunk/; revision=20182
Richard Hult [Mon, 26 May 2008 18:51:35 +0000 (18:51 +0000)]
Try setting the default font, might need to tweak this.
2008-05-26 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkevents-quartz.c: (gdk_screen_get_setting): Try
setting the default font, might need to tweak this.
svn path=/trunk/; revision=20181
Michael Natterer [Mon, 26 May 2008 15:14:41 +0000 (15:14 +0000)]
gdk-pixbuf-xlib.h use G_BEGIN/END_DECLS.
2008-05-26 Michael Natterer <mitch@imendio.com>
* gdk-pixbuf-xlib.h
* gdk-pixbuf-xlibrgb.h: use G_BEGIN/END_DECLS.
svn path=/trunk/; revision=20180
Michael Natterer [Mon, 26 May 2008 14:34:24 +0000 (14:34 +0000)]
examples/gtkdial/gtkdial.h use G_BEGIN/END_DECLS.
2008-05-26 Michael Natterer <mitch@imendio.com>
* examples/gtkdial/gtkdial.h
* modules/input/gtkimcontextthai.h: use G_BEGIN/END_DECLS.
svn path=/trunk/; revision=20179
Michael Natterer [Mon, 26 May 2008 14:23:33 +0000 (14:23 +0000)]
libgail-util/gailmisc.h use G_BEGIN/END_DECLS.
2008-05-26 Michael Natterer <mitch@imendio.com>
* libgail-util/gailmisc.h
* libgail-util/gailtextutil.h: use G_BEGIN/END_DECLS.
svn path=/trunk/; revision=20178
Michael Natterer [Mon, 26 May 2008 13:07:38 +0000 (13:07 +0000)]
fix indentation.
2008-05-26 Michael Natterer <mitch@imendio.com>
* gtk/gtkimmodule.h: fix indentation.
svn path=/trunk/; revision=20177
Michael Natterer [Mon, 26 May 2008 09:51:48 +0000 (09:51 +0000)]
include "gdk/gdk.h" instead of "gdk/gdkscreen.h"
2008-05-26 Michael Natterer <mitch@imendio.com>
* gtk/gtkshow.h: include "gdk/gdk.h" instead of "gdk/gdkscreen.h"
* gtk/gtkshow.c: remove inclusion of single files from gdk/
Removed trailing whitespace in both files.
svn path=/trunk/; revision=20176
Richard Hult [Mon, 26 May 2008 08:54:00 +0000 (08:54 +0000)]
Bug 530353 – Mac-like gtk_accelerator_get_label()
2008-05-26 Richard Hult <richard@imendio.com>
Bug 530353 – Mac-like gtk_accelerator_get_label()
* gtk/gtkaccellabel.c: (gtk_accel_label_class_init),
(append_keyval_symbol), (_gtk_accel_label_class_get_accelerator_label):
On quartz, make gtk_accelerator_get_label() format a Mac-like
string, using unicode characters for modifier keys, arrows, delete
etc. Patch from Yevgen Muntyan.
svn path=/trunk/; revision=20175
Richard Hult [Mon, 26 May 2008 07:40:17 +0000 (07:40 +0000)]
Bug 534869 – Length miscalculation in
2008-05-26 Richard Hult <richard@imendio.com>
Bug 534869 – Length miscalculation in
_gtk_quartz_get_selection_data_from_pasteboard
* gtk/gtkquartz.c: (_gtk_quartz_get_selection_data_from_pasteboard):
Get the number of bytes, not the number of characters, patch from
Yevgen Muntyan.
svn path=/trunk/; revision=20174
Matthias Clasen [Mon, 26 May 2008 05:43:00 +0000 (05:43 +0000)]
Additions
svn path=/trunk/; revision=20173
Matthias Clasen [Mon, 26 May 2008 05:38:20 +0000 (05:38 +0000)]
Some doc formatting fixes.
svn path=/trunk/; revision=20172
Matthias Clasen [Mon, 26 May 2008 04:33:25 +0000 (04:33 +0000)]
Bug 511163 – Remove pango_extents_to_pixels() calls
* gtk/gtkcellrenderertext.c (get_size): Use
pango_layout_get_pixel_extents.
* configure.in: Bump Pango requirement to 1.20
* INSTALL.in: Update required versions
svn path=/trunk/; revision=20171
Matthias Clasen [Mon, 26 May 2008 04:25:25 +0000 (04:25 +0000)]
Bug 513811 – Use cairo_format_stride_for_width()
* gtk/gtkhsv.c (paint_ring, paint_triangle):
* gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Use
cairo_format_stride_for_width, proposed by Behdad Esfahbod.
* configure.in: Bump cairo requirement to 1.6.0
* INSTALL.in: Update required versions
svn path=/trunk/; revision=20170
Matthias Clasen [Mon, 26 May 2008 04:05:17 +0000 (04:05 +0000)]
Formatting fixes
2008-05-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkshow.[hc]: Formatting fixes
* gtk/gtkmountoperation.c: Add docs
svn path=/trunk/; revision=20169
Cody Russell [Sun, 25 May 2008 23:47:36 +0000 (23:47 +0000)]
Bug 507389 – use gslice for gtksettings
2008-05-25 Cody Russell <bratsche@gnome.org>
Bug 507389 – use gslice for gtksettings
* gtk/gtksettings.c: Change from g_new0/g_free to use GSlice.
Report and patch by Christian Persch.
svn path=/trunk/; revision=20168
Cody Russell [Sun, 25 May 2008 23:41:43 +0000 (23:41 +0000)]
Bug 523562 - gtk-update-icon-cache core dumps when run concurrently and
2008-05-25 Cody Russell <bratsche@gnome.org>
Bug 523562 - gtk-update-icon-cache core dumps when run concurrently and
when options are missing
* gtk/updateiconcache.c: Open the cache file (O_CREAT | O_EXCL) so
that other processes that try to open it will fail gracefully. Also
fix a crasher caused by lack of a NULL check. Report and patch
by Erwann Chenede.
svn path=/trunk/; revision=20167
Cody Russell [Sun, 25 May 2008 23:27:34 +0000 (23:27 +0000)]
Bug 526635 - _gdk_window_get_toplevel handles FOREIGN windows
2008-05-25 Cody Russell <bratsche@gnome.org>
Bug 526635 - _gdk_window_get_toplevel handles FOREIGN windows
* gdk/x11/gdkwindow-x11.c (_gdk_window_get_toplevel): Check
!WINDOW_IS_TOPLEVEL instead of checking for GDK_WINDOW_CHILD,
so that we also take into account for foreign windows.
Report and patch by Nathaniel Smith.
svn path=/trunk/; revision=20166
Cody Russell [Sun, 25 May 2008 23:21:40 +0000 (23:21 +0000)]
Bug 525461 - Don't invalidate under an input-only child
2008-05-25 Cody Russell <bratsche@gnome.org>
Bug 525461 - Don't invalidate under an input-only child
* gdk/x11/gdkgeometry-x11.c (_gdk_window_move_resize_child):
Check that the window is not input-only before invalidating.
Report and patch by Owen Taylor.
svn path=/trunk/; revision=20165
Cody Russell [Sun, 25 May 2008 23:14:39 +0000 (23:14 +0000)]
Bug 524110 - Gdk should not assume reparenting WMs when retrieving window
2008-05-25 Cody Russell <bratsche@gnome.org>
Bug 524110 - Gdk should not assume reparenting WMs when retrieving
window frame extents
* gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
Use _NET_FRAME_EXTENTS, if available. Patch by Danny Baumann.
svn path=/trunk/; revision=20164
Cody Russell [Sun, 25 May 2008 23:09:09 +0000 (23:09 +0000)]
Bug 522269 - Evince windows sometimes incorrectly unmaximized, caused by
2008-05-25 Cody Russell <bratsche@gnome.org>
Bug 522269 - Evince windows sometimes incorrectly unmaximized,
caused by missing flag initialization
* gdk/x11/gdkwindow-x11.c (set_initial_hints): Initialize
top-level private flags correctly. Patch by Danny Baumann.
svn path=/trunk/; revision=20163
Cody Russell [Sun, 25 May 2008 22:58:55 +0000 (22:58 +0000)]
Bug 534463 - non-editable GtkTextView should not call
2008-05-25 Cody Russell <bratsche@gnome.org>
Bug 534463 - non-editable GtkTextView should not call
gtk_im_context_focus_in in focus event
* gtk/gtktextview.c: Add checks to see if the textview is
editable. Patch by Wang Diancheng.
svn path=/trunk/; revision=20162
Matthias Clasen [Sun, 25 May 2008 22:33:34 +0000 (22:33 +0000)]
Bug 501730 – use GSlice for small allocs
* gtk/gtkmenuitem.c:
* gtk/gtkmenu.c: Use the slice allocator for small allocations.
Patch by Christian Persch.
svn path=/trunk/; revision=20161
Matthias Clasen [Sun, 25 May 2008 20:46:03 +0000 (20:46 +0000)]
Bug 465144 - gtkprintjob.h is not included with gtk.h
* gtk/gtk-sections.txt: Fix include for gtkprintjob.h, pointed
out by Étienne Bersac.
svn path=/trunk/; revision=20160
Matthias Clasen [Sun, 25 May 2008 20:41:55 +0000 (20:41 +0000)]
Bug 523930 – sort -> search in gtktreeview.c
* gtk/gtktreeview.c (gtk_tree_view_set_search_column): Fix a doc
glitch, pointed out by Björn Lindqvist.
svn path=/trunk/; revision=20159
Matthias Clasen [Sun, 25 May 2008 20:37:15 +0000 (20:37 +0000)]
Bug 479384 – gtk_selection_data_targets_include_uri docs buglet
2008-05-25 Matthias Clasen <mclasen@redhat.com>
Bug 479384 – gtk_selection_data_targets_include_uri docs buglet
* gtk/gtkselection.c (gtk_selection_data_targets_include_uri): Fix
doc glitch, pointed out by Christian Persch.
svn path=/trunk/; revision=20158
Matthias Clasen [Sun, 25 May 2008 20:28:54 +0000 (20:28 +0000)]
Bug 534694 – Col id in GtkListStore could be out of range
2008-05-25 Matthias Clasen <mclasen@redhat.com>
Bug 534694 – Col id in GtkListStore could be out of range
* gtk/gtkliststore.c (list_store_start_element): Fix up error handling
a bit. Pointed out by Jan Arne Petersen.
svn path=/trunk/; revision=20157
Matthias Clasen [Sun, 25 May 2008 20:18:16 +0000 (20:18 +0000)]
Bug 532497 – Configure problem when cross-compiling
2008-05-25 Matthias Clasen <mclasen@redhat.com>
Bug 532497 – Configure problem when cross-compiling
* configure.in: Use AC_CHECK_TOOLS to find C++ compiler,
pointed out by Marko Lindqvist.
svn path=/trunk/; revision=20156
Tristan Van Berkom [Sun, 25 May 2008 15:16:52 +0000 (15:16 +0000)]
Enhanced pango attribute tests, Added tests for requires tag handling.
* tests/buildertest.c: Enhanced pango attribute tests, Added tests
for requires tag handling.
svn path=/trunk/; revision=20154
Richard Hult [Sun, 25 May 2008 15:15:02 +0000 (15:15 +0000)]
Slight coding style cleanup.
2008-05-25 Richard Hult <richard@imendio.com>
* gtk/gtkquartz.c: (_gtk_quartz_set_selection_data_for_pasteboard):
Slight coding style cleanup.
svn path=/trunk/; revision=20153
Tristan Van Berkom [Sun, 25 May 2008 15:12:39 +0000 (15:12 +0000)]
Added support for parsing required toolkit versions (so that ui
* gtk/gtkbuilderprivate.h, gtk/gtkbuilder.h, gtk/gtkbuilderparser.c:
Added support for parsing required toolkit versions (so that ui descriptions
can target specific versions of the backend widget libraries) bug 527612.
* gtk/docs/reference/gtk/tmpl/gtkbuilder.sgml: Added documentation
for the added xml tags to the ui description.
svn path=/trunk/; revision=20152
Richard Hult [Sun, 25 May 2008 15:11:11 +0000 (15:11 +0000)]
Run gtk_drag_source_info_destroy in an idle, workaround for bug #501588,
2008-05-25 Richard Hult <richard@imendio.com>
* gtk/gtkdnd-quartz.c: (gtk_drag_drop_finished): Run
gtk_drag_source_info_destroy in an idle, workaround for bug
#501588, that makes any code that uses the context returned from
gtk_drag_begin() crash, like treeview/iconview dnd.
(GdkDragSourceOwner::provideDataForType): only use the data if we
got any.
svn path=/trunk/; revision=20151
Jan Arne Petersen [Sun, 25 May 2008 14:24:42 +0000 (14:24 +0000)]
Add GDK_ACTION_MOVE to the drag actions to allow trash (#137717).
2008-05-25 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtkfilechooserdefault.c: (create_file_list): Add GDK_ACTION_MOVE
to the drag actions to allow trash (#137717).
svn path=/trunk/; revision=20150
Josselin Mouette [Sun, 25 May 2008 14:19:16 +0000 (14:19 +0000)]
check that tracker is actually working before using it. Fixes bug #479197.
* gtk/gtksearchenginetracker.c: (_gtk_search_engine_tracker_new):
check that tracker is actually working before using it. Fixes
bug #479197.
svn path=/trunk/; revision=20149
Sven Neumann [Sun, 25 May 2008 12:53:59 +0000 (12:53 +0000)]
respect the GTK_NO_WINDOW flag and don't create an output window if it is
2008-05-25 Sven Neumann <sven@gimp.org>
* gtk/gtkdrawingarea.c (gtk_drawing_area_realize)
(gtk_drawing_area_size_allocate): respect the GTK_NO_WINDOW flag
and don't create an output window if it is set.
* gtk/gtkprintunixdialog.c: set the GTK_NO_WINDOW flag for the
drawing areas. Fixes bug #519317.
svn path=/trunk/; revision=20148
Jan Arne Petersen [Sun, 25 May 2008 12:46:26 +0000 (12:46 +0000)]
Reorder strange window hierarchy of the GtkSpinButton (#466000).
2008-05-25 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtkentry.c: (gtk_entry_class_init), (get_text_area_size),
(gtk_entry_get_text_area_size), (gtk_entry_draw_frame):
* gtk/gtkentry.h:
* gtk/gtkspinbutton.c: (gtk_spin_button_class_init),
(gtk_spin_button_realize), (gtk_spin_button_size_allocate),
(gtk_spin_button_expose), (gtk_spin_button_draw_arrow),
(gtk_spin_button_enter_notify), (gtk_spin_button_leave_notify),
(gtk_spin_button_grab_notify), (gtk_spin_button_state_changed),
(start_spinning), (gtk_spin_button_button_release),
(gtk_spin_button_motion_notify), (gtk_spin_button_value_changed),
(gtk_spin_button_get_text_area_size), (gtk_spin_button_real_spin),
(gtk_spin_button_update): Reorder strange window hierarchy of the
GtkSpinButton (#466000).
svn path=/trunk/; revision=20147
Jan Arne Petersen [Sun, 25 May 2008 12:29:19 +0000 (12:29 +0000)]
Subtract logical.x from x to fix the wrong position for right and center
2008-05-25 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtklabel.c: (get_layout_location): Subtract logical.x from x to
fix the wrong position for right and center justified labels with
logical.x > 0 (#530255).
svn path=/trunk/; revision=20146
Jan Arne Petersen [Sun, 25 May 2008 12:22:30 +0000 (12:22 +0000)]
Ignore G_IO_ERROR_FAILED_HANDLED errors (#532262).
2008-05-25 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtkfilechooserdefault.c:
(shortcuts_activate_volume_mount_cb): Ignore G_IO_ERROR_FAILED_HANDLED
errors (#532262).
svn path=/trunk/; revision=20145
Björn Lindqvist [Sun, 25 May 2008 08:41:15 +0000 (08:41 +0000)]
tests/pixbuf-lowmem.c tests/pixbuf-random.c
2008-05-25 Björn Lindqvist <bjourne@gmail.com>
* tests/pixbuf-lowmem.c
* tests/pixbuf-random.c
* tests/pixbuf-randomly-modified.c
* tests/pixbuf-read.c
* tests/pixbuf-threads.c
* tests/testgtk.c
* tests/testtreeview.c: Fix remaining compiler warnings in these
files (#523751).
svn path=/trunk/; revision=20144
Jaap A. Haitsma [Sun, 25 May 2008 08:20:37 +0000 (08:20 +0000)]
reviewed by: Matthias Clasen
2008-05-25 Jaap A. Haitsma <jaap@haitsma.org>
reviewed by: Matthias Clasen
* gtk/Makefile.am:
* gtk/gtk.h:
* gtk/gtk.symbols:
* gtk/gtkshow.c: (gtk_show_uri):
* gtk/gtkshow.h:
Add gtk_show_uri to make showing uris really easy. Fixes bug #514396
svn path=/trunk/; revision=20143
Jan Arne Petersen [Sat, 24 May 2008 23:32:13 +0000 (23:32 +0000)]
Use type of the correct column (#529535). Add test.
2008-05-25 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtkliststore.c: (list_store_text): Use type of the correct
column (#529535).
* tests/buildertest.c: (test_list_store): Add test.
svn path=/trunk/; revision=20142
Matthias Clasen [Sat, 24 May 2008 23:19:01 +0000 (23:19 +0000)]
Make the iconfactory buildable implementation less strict
svn path=/trunk/; revision=20141
Matthias Clasen [Sat, 24 May 2008 20:42:09 +0000 (20:42 +0000)]
Bug 387972 – gtkassistant drawing problem
* gtk/gtkassistant.c (gtk_assistant_size_allocate): Make
GtkAssistant work better in glade.
svn path=/trunk/; revision=20140
Jan Arne Petersen [Sat, 24 May 2008 19:03:33 +0000 (19:03 +0000)]
Change defaults of child properties "expand" and "homogeneous" from TRUE
2008-05-24 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtktoolbar.c: (gtk_toolbar_class_init): Change defaults of child
properties "expand" and "homogeneous" from TRUE to FALSE (as they are
used in GtkToolItem) (#532787).
svn path=/trunk/; revision=20139
Jan Arne Petersen [Sat, 24 May 2008 18:59:56 +0000 (18:59 +0000)]
Don't try to toggle the visibility of the location entry field in search
2008-05-24 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtkfilechooserdefault.c: (location_toggle_popup_handler): Don't
try to toggle the visibility of the location entry field in search and
recent mode (#526422)
svn path=/trunk/; revision=20138
Jan Arne Petersen [Sat, 24 May 2008 18:56:22 +0000 (18:56 +0000)]
Show parse name as tooltip for path shortcuts (#137503).
2008-05-24 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_query_tooltip_cb),
(shortcuts_list_create): Show parse name as tooltip for path
shortcuts (#137503).
svn path=/trunk/; revision=20137
Matthias Clasen [Sat, 24 May 2008 18:42:15 +0000 (18:42 +0000)]
Bug 504706 – wrong deallocator used for GError in gailtextview.c
2008-05-24 Matthias Clasen <mclasen@redhat.com>
Bug 504706 – wrong deallocator used for GError in gailtextview.c
* gailtextview.c: Don't use g_free on a GError.
svn path=/trunk/; revision=20136
Björn Lindqvist [Sat, 24 May 2008 16:51:38 +0000 (16:51 +0000)]
Update docstring to match pango_color_parse, do not reference XParseColor
2008-05-24 Björn Lindqvist <bjourne@gmail.com>
* gdk/gdkcolor.c (gdk_color_parse): Update docstring to match
pango_color_parse, do not reference XParseColor forms (#434991).
svn path=/trunk/; revision=20135
Clytie Siddall [Sat, 24 May 2008 13:25:01 +0000 (13:25 +0000)]
Updated Vietnamese translation
svn path=/trunk/; revision=20134
Clytie Siddall [Sat, 24 May 2008 13:03:27 +0000 (13:03 +0000)]
Updated Vietnamese translation
svn path=/trunk/; revision=20133
James Sharpe [Sat, 24 May 2008 00:47:05 +0000 (00:47 +0000)]
Remove duplicate gdk_window_redirect_to_drawable and
2008-05-24 James Sharpe <jsharpe@gnome.org>
* gdk/gdk.symbols: Remove duplicate
gdk_window_redirect_to_drawable and gdk_window_remove_redirection
* gtk/gtk.symbols: Remove duplicate gtk_widget_get_snapshot
svn path=/trunk/; revision=20132
Hans Breuer [Fri, 23 May 2008 20:29:27 +0000 (20:29 +0000)]
updated fix c99ism (variable at start of block export functions for window
2008-05-23 Hans Breuer <hans@breuer.org>
* **/makefile.msc gtk/makefile.msc.in : updated
* gtk/gtkwidget.c : fix c99ism (variable at start of block
* gdk/gdk.symbols gtk/gtk.symbols : export functions for window
redirection
* gtk/gtkfilechooserdefault.c : #include <locale.h> for
setlocale(LC_ALL, ...)
svn path=/trunk/; revision=20131
Tor Lillqvist [Fri, 23 May 2008 18:46:40 +0000 (18:46 +0000)]
Add gdk_window_redirect_to_drawable and gdk_window_remove_redirection.
2008-05-23 Tor Lillqvist <tml@novell.com>
* gdk/gdk.symbols: Add gdk_window_redirect_to_drawable and
gdk_window_remove_redirection.
* gdk/win32/gdkwindow-win32.c (_gdk_window_new)
(_gdk_window_reparent): Rename to adapt to the offscreen rendering
changes. Remove now unnecessary parameter checks as the caller
does that already.
* gtk/gtk.symbols: Add gtk_widget_get_snapshot.
svn path=/trunk/; revision=20130
Tor Lillqvist [Fri, 23 May 2008 18:25:12 +0000 (18:25 +0000)]
Don't do anything if style doesn't change. Improve debugging output.
2008-05-23 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c (update_style_bits): Don't do
anything if style doesn't change. Improve debugging output.
svn path=/trunk/; revision=20129
Michael Natterer [Fri, 23 May 2008 14:55:43 +0000 (14:55 +0000)]
perf/widgets.h tests/print-editor.c tests/prop-editor.h
2008-05-23 Michael Natterer <mitch@gimp.org>
* perf/widgets.h
* tests/print-editor.c
* tests/prop-editor.h
* tests/testmountoperation.c
* tests/testmultidisplay.c
* tests/testnouiprint.c
* tests/testprint.c
* tests/testprintfileoperation.h
* tests/testtreesort.c
* tests/textbuffertest.c: include <gtk/gtk.h> instead of single
files. Remove some redundant includes.
svn path=/trunk/; revision=20128
Djihed Afifi [Thu, 22 May 2008 22:58:30 +0000 (22:58 +0000)]
Updated Arabic Translation by Khaled Hosny.
svn path=/trunk/; revision=20127
Hiroyuki Ikezoe [Wed, 21 May 2008 21:00:10 +0000 (21:00 +0000)]
Remove second call of GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED).
2008-05-22 Hiroyuki Ikezoe <poincare@ikezoe.net>
* gtk/gtksockget.c: (gtk_socket_realize): Remove second call of
GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED).
svn path=/trunk/; revision=20126
Richard Hult [Wed, 21 May 2008 20:48:21 +0000 (20:48 +0000)]
Renamed to adapt to the offscreen rendering changes, fixes build.
2008-05-21 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c:
(_gdk_window_new), (_gdk_window_reparent): Renamed to adapt to the
offscreen rendering changes, fixes build.
svn path=/trunk/; revision=20125
21:10:15 Tim Janik [Wed, 21 May 2008 19:15:12 +0000 (19:15 +0000)]
added GdkRectangle *clip_rect to gtk_widget_get_snapshot().
2008-05-21 21:10:15 Tim Janik <timj@imendio.com>
* gtk/gtkwidget.h: added GdkRectangle *clip_rect to gtk_widget_get_snapshot().
* gtk/gtkwidget.c: clip the returned snapshot pixmap to clip_rect.
return snapshot pixmap coordinates widget relative in *clip_rect.
* tests/testgtk.c: fixed bogus NULL pointer unref.
svn path=/trunk/; revision=20124
21:04:28 Tim Janik [Wed, 21 May 2008 19:07:40 +0000 (19:07 +0000)]
grow snapshot area from widget's allocation to cover extra widget windows
2008-05-21 21:04:28 Tim Janik <timj@imendio.com>
* gtk/gtkwidget.c gtk_widget_get_snapshot(): grow snapshot area from
widget's allocation to cover extra widget windows placed outside the
widget allocation (spinbutton arrows are the prime example for this).
svn path=/trunk/; revision=20123
10:49:20 Tim Janik [Wed, 21 May 2008 19:04:24 +0000 (19:04 +0000)]
Bug 318807 – Offscreen windows and window redirection.
2008-03-18 10:49:20 Tim Janik <timj@imendio.com>
* Applied pixmap redirection patch by Alexander Larsson with
various updates from:
Bug 318807 – Offscreen windows and window redirection.
Updates:
* updated docs to mention "Since 2.16".
* tests/testgtk.c: fixed snapshooting pixmap leak.
convert pixmap to pixbuf after snapshooting, to compensate for different
bit depths (occurs when snapshooting ARGB visuals and displaying the
pixmap in an RGB visual).
* gdk/gdkwindow.[hc]: made GdkWindowRedirect private.
* gdk/gdkwindow.c: removed damage idle handler, there's no aparent
need for it. enqueue damage notification as GDK_DAMAGE events
for each painting redirection at the start of the event queue.
consider windows with a redirection fully visible when invalidating,
and when updating from backing store. cleaned up stale variables.
* gdk/gdkevents.c: added _gdk_event_queue_prepend().
* gtk/gtkwidget.c: fixed coordinates for !NO_WINDOW widgets in
gtk_widget_get_snapshot; this fixes garbage snap offsets for gammacurve,
tree, drawingarea, text, handlebox, etc.
clip the redirected window hierarchy to window sizes, the visible
rectangles don't need to be taken into account here.
extended snapshooting docs to recommend gdk_pixbuf_get_from_drawable()
in case pixmap visuals could mismatch.
* gdk/x11/gdkwindow-x11.c: removed _gdk_windowing_window_get_visible_rect().
Base patch:
* tests/testgtk.c: add a "Snapshot" test to demonstrate snapshooting
of possibly obscured widgets into an offscreen pixmap.
* gtk/gtkwidget.[hc]: add GtkWidget::damage-event signal, add
gtk_widget_get_snapshot() to render a widget's contents to a GdkPixmap.
* gtk/gtkmain.c: dispatch GDK_DAMAGE events.
* gdk/gdkwindow.c: moved outer gdk_window_new() and gdk_window_reparent()
implementations here, adapted them to propagate redirects to child windows.
gdk_window_end_paint(): copy repainted window contents to redirection pixmap,
clipped to visible region. queue GDK_DAMAGE event delivery.
gdk_window_redirect_to_drawable(): install window painting redirection.
gdk_window_remove_redirection(): remove previously installed redirection.
* gdk/x11/gdkwindow-x11.c: added _gdk_windowing_window_get_visible_rect(),
renamed _gdk_window_new() and _gdk_window_reparent().
* gdk/gdkwindow.h: added GdkWindowRedirect* to GdkWindowObject, export
gdk_window_redirect_to_drawable() and gdk_window_remove_redirection().
* gdk/gdkevents.h: added GDK_DAMAGE event type.
* gdk/gdkevents.c: extract time and state from GDK_DAMAGE events.
* gdk/gdkinternals.h: added internal prototypes.
svn path=/trunk/; revision=20122
Michael Natterer [Wed, 21 May 2008 11:30:06 +0000 (11:30 +0000)]
gtk/gtkalignment.c gtk/gtkarrow.c gtk/gtkbbox.c gtk/gtkcalendar.c remove
2008-05-21 Michael Natterer <mitch@imendio.com>
* gtk/gtkalignment.c
* gtk/gtkarrow.c
* gtk/gtkbbox.c
* gtk/gtkcalendar.c
* gtk/gtkscrolledwindow.c: remove PROP_LAST enum values.
svn path=/trunk/; revision=20121
Matthias Clasen [Wed, 21 May 2008 02:17:30 +0000 (02:17 +0000)]
RH bug 204621 - "GtkPrint" asks for "Letter" size paper when "A4" size
was chosen
Patch by Marek Kasik.
* gtk/gtk.symbols:
* gtk/gtkprinter.[hc]: Add gtk_printer_get_default_page_size.
* gtk/gtkprintbackend.[hc]: Add fallback implementation.
* modules/printbackends/file/gtkprintbackendfile.c:
* modules/printbackends/cups/gtkprintbackendcups.c: Implement
get_default_page_size.
* gtk/gtkpagesetupunixdialog.c: When selecting a different printer,
select its default paper size.
* gtk/gtkprintunixdialog.c: If no explicit page setup has been set,
use the printer default.
* gtk/gtkprintoperation-unix.c: Don't create an empty page setup
if we don't have a default page setup.
svn path=/trunk/; revision=20120
Gian Mario Tagliaretti [Tue, 20 May 2008 17:43:01 +0000 (17:43 +0000)]
Fix the docs, the mask param of gtk_drag_set_icon_pixmap can accept NULL for none. Fixes bug #533920.
svn path=/trunk/; revision=20119
Björn Lindqvist [Tue, 20 May 2008 17:29:34 +0000 (17:29 +0000)]
Remove two chunks of duplicated code (#533733).
2008-05-20 Björn Lindqvist <bjourne@gmail.com>
* gtk/gtkspinbutton.c: (gtk_spin_button_snap,
gtk_spin_button_update): Remove two chunks of duplicated
code (#533733).
svn path=/trunk/; revision=20118